<?php
class DictModel extends MongoModel {
	var $table = 'dict';
	var $name = '字典';
	var $db_name = WIKI_DB_NAME;
	
	public static function clean_cache($main_domain, $word){
		$url = '/sites/main/' . $main_domain . '/html/wiki/' . $word;
		$cache = get_cache_service();
		$key = $cache->gen_cache_key($main_domain, $url);
		get_cache_service()->remove($key);
	}
}

?>